package main

import (
	"fmt"
	"os"
)

func aa() {
	x := 10
	switch {
	case x > 1:
		println(x)
		x -= 1
		fallthrough // 此时switch(1)会执行case1和case2，但是如果满足if条件，则只执行case1

	case x > 2:
		println(x)
	case x > 3:
		println(x)
	}
}

func main() {
	x := "abc.json"
	contest, err := os.ReadFile(x)
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Printf("%s\n", contest)
	}
	aa()
}
